package com.qingzhuge.scheduler.manager;

import com.qingzhuge.common.annotation.ASysLog;
import com.qingzhuge.common.enums.EResourceType;
import com.qingzhuge.controller.BasePkLongController;
import com.qingzhuge.core.annotation.AResource;
import com.qingzhuge.dto.response.ResponseBodyDto;
import com.qingzhuge.scheduler.dto.request.SysTaskRunLogRequestDto;
import com.qingzhuge.scheduler.dto.respone.SysTaskRunLogResponseDto;
import com.qingzhuge.scheduler.entity.SysTaskRunLog;
import com.qingzhuge.scheduler.service.ISysTaskRunLogService;
import com.qingzhuge.utils.PageUtil;
import io.swagger.annotations.Api;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author : zero.xiao
 * @description :
 * @date :2019-05-17 17:42
 * @modified :
 */
@ASysLog(value = "任务日志")
@AResource(name = "任务日志",type = EResourceType.menu, catalog = "任务管理")
@Api(tags = "S任务日志")
@RestController
@RequestMapping("api/sys/auth/task/log")
public class SysTaskRunLogController extends BasePkLongController<SysTaskRunLog, ISysTaskRunLogService, SysTaskRunLogRequestDto, SysTaskRunLogResponseDto> {

    @Override
    public ResponseEntity<ResponseBodyDto<PageUtil<SysTaskRunLogResponseDto>>> queryPage(@RequestBody SysTaskRunLogRequestDto log) {
        return super.queryPage(log);
    }

    @Override
    public ResponseEntity<ResponseBodyDto<SysTaskRunLogResponseDto>> get(@PathVariable Long id) {
        return super.get(id);
    }

    @Override
    public ResponseEntity<ResponseBodyDto<SysTaskRunLogResponseDto>> save(@RequestBody SysTaskRunLogRequestDto log) {
        return super.save(log);
    }

    @Override
    public ResponseEntity<ResponseBodyDto<SysTaskRunLogResponseDto>> update(@RequestBody SysTaskRunLogRequestDto log) {
        return super.update(log);
    }

    @Override
    public ResponseEntity<ResponseBodyDto<Object>> delete(@PathVariable Long id) {
        return super.delete(id);
    }
}
